label: Never measure more than max-width-chars
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2021 23:04:25 +0000 (01:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2021 23:04:25 +0000 (01:04 +0200)
commitba44e7a228534ff066694ad97d25eaa23ec5f3af
tree5bc053c21f0a46ff359d16e7e835ed7b62416a4a
parentcad979b734d15b58d08456dd206f1ff02d9a05d7
label: Never measure more than max-width-chars

Even when we have tons of width available, still do the wrapping at
max-width-chars.

This is what happened in GTK3, too, but it happened automatically
because GTK3 did for_size = MIN (for_size, nat_size) and GTK4 does not.

So we do this manually in the label now.

Fixes the label-sizing.ui reftest.
gtk/gtklabel.c